package com.micai.springboot.service;

import com.baomidou.mybatisplus.service.IService;
import com.github.pagehelper.Page;
import com.micai.springboot.dto.UserDto;
import com.micai.springboot.entity.UserEntity;
import com.micai.springboot.vo.UserVo;

import java.util.List;

/**
 * 描述：
 * <p>
 * Author: 赵新国
 * Date: 2017/10/24 18:03
 */
public interface UserService extends IService<UserEntity> {

    List<UserDto> listUsers();

    Page<UserEntity> getUserByPage(int pageNum, int pageSize, String userName);

    void save(UserDto userDto);

    void update(UserDto userDto);

    UserDto getUserById(Long id);

    void delete(UserDto userDto);
}
